package com.hontech.libratest.model

import com.hontech.libratest.env.RkcEvent
import com.hontech.libratest.utils.Frame
import com.hontech.libratest.utils.UInt16
import com.hontech.libratest.utils.eventBus

class RkcStatus(val sw: UInt16, val temp: UInt16) {

    companion object {

        val instance = RkcStatus(UInt16(), UInt16())

        fun recv(frame: Frame) {
            frame.parse(arrayOf(instance.sw, instance.temp))
            eventBus.post(RkcEvent())
        }
    }
}

